<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/decorators/taglibs.jsp"%>
<style>
a:hover{
	color:#FFFF00;
}
</style>
<div class="buttons">
<sec:authorize ifAnyGranted="admin,formUser">
<a href="javascript: return false;" class="animate action-button green" onclick="dispatch(1);">議案表單系統</a> 
</sec:authorize>
<sec:authorize ifAnyGranted="admin,subAdmin,imgUser">
<a href="javascript: return false;" class="animate action-button blue" onclick="dispatch(2);">議案影像平台</a> 
</sec:authorize>
</div>
<form id="dispatchForm" method="post" action="${appPath}/home.htm">
	<input type="hidden" id="type" name="type" />
</form>

<script>
	$(document).ready(function() {
		<c:if test="${param.login_error == 't'}">
		$.messager.alert('錯誤訊息', '帳號密碼錯誤', 'error');
		</c:if>
	});
	function dispatch(num) {
		$("#type").val(num);
		$("#dispatchForm").submit();
		//location.href = "${appPath}/home.htm";

	}
</script>